//
//  ViewController.m
//  LeShangCheng
//
//  Created by lxf_zsc on 16/7/27.
//  Copyright © 2016年 lechinePay. All rights reserved.
//

#import "ViewController.h"
#import "NSURLRequest+ForSSL.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    UIWebView * webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 20, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height-20)];
    NSURLRequest * request  = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.wcjbiz.com"]];
    // 使用的时候，加上这句即可
    [NSURLRequest setAllowsAnyHTTPSCertificate:YES forHost:@"http://www.wcjbiz.com"];
    [self.view addSubview: webView];
    [webView loadRequest:request];
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
